package edu.cdnu.pojo;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * 数据库Student的映射类
 * 
 * @author ASUS AsingZ
 */
@TableName("student")
public class StudentPojo extends Model<StudentPojo> implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	@TableId
	private Integer id;
	/**
	 * 角色id
	 */
	private Integer roleId;
	/**
	 * 账号(学号)
	 */
	private String account;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 姓名
	 */
	private String name;
	/**
	 * 身份证号
	 */
	private String idcard;
	/**
	 * 电话号码
	 */
	private String phone;
	/**
	 * 邮箱
	 */
	private String email;
	/**
	 * 班级id
	 */
	private Integer classId;
	/**
	 * 专业id
	 */
	private Integer subjectId;
	/**
	 * 系部id
	 */
	private Integer departmentId;
	/**
	 * 状态,0-在读,1-毕业,2-离校
	 */
	private Integer state;
	
	
	
	public StudentPojo() {
		super();
	}
	/**
	 * 带ID
	 * @param id
	 * @param roleId
	 * @param account
	 * @param password
	 * @param name
	 * @param idcard
	 * @param phone
	 * @param email
	 * @param classId
	 * @param subjectId
	 * @param departmentId
	 * @param state
	 */
	public StudentPojo(Integer id, Integer roleId, String account, String password, String name, String idcard,
			String phone, String email, Integer classId, Integer subjectId, Integer departmentId, Integer state) {
		super();
		this.id = id;
		this.roleId = roleId;
		this.account = account;
		this.password = password;
		this.name = name;
		this.idcard = idcard;
		this.phone = phone;
		this.email = email;
		this.classId = classId;
		this.subjectId = subjectId;
		this.departmentId = departmentId;
		this.state = state;
	}
	
	/**
	 * 不带Id
	 * @param roleId
	 * @param account
	 * @param password
	 * @param name
	 * @param idcard
	 * @param phone
	 * @param email
	 * @param classId
	 * @param subjectId
	 * @param departmentId
	 * @param state
	 */
	public StudentPojo(Integer roleId, String account, String password, String name, String idcard, String phone,
			String email, Integer classId, Integer subjectId, Integer departmentId, Integer state) {
		super();
		this.roleId = roleId;
		this.account = account;
		this.password = password;
		this.name = name;
		this.idcard = idcard;
		this.phone = phone;
		this.email = email;
		this.classId = classId;
		this.subjectId = subjectId;
		this.departmentId = departmentId;
		this.state = state;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getRoleId() {
		return roleId;
	}
	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getIdcard() {
		return idcard;
	}
	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public Integer getClassId() {
		return classId;
	}
	public void setClassId(Integer classId) {
		this.classId = classId;
	}
	public Integer getSubjectId() {
		return subjectId;
	}
	public void setSubjectId(Integer subjectId) {
		this.subjectId = subjectId;
	}
	public Integer getDepartmentId() {
		return departmentId;
	}
	public void setDepartmentId(Integer departmentId) {
		this.departmentId = departmentId;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	
	
	@Override
	public String toString() {
		return "StudentPojo [id=" + id + ", roleId=" + roleId + ", account=" + account + ", password=" + password
				+ ", name=" + name + ", idcard=" + idcard + ", phone=" + phone + ", email=" + email + ", classId="
				+ classId + ", subjectId=" + subjectId + ", departmentId=" + departmentId + ", state=" + state + "]";
	}
	
	
}
